﻿using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Repository.lnterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.LuFang.Repository.lmpl
{
    public class EnterpriseRepository : BaseRepository<Enterprise>, IEnterpriseRepository
    {
        public EnterpriseRepository(EFCoreContext corecontext) : base(corecontext)
        {
        }
        public async Task<List<Enterprise>> Get(Expression<Func<Enterprise, bool>> expre)
        {
            return await base.Get(expre);
        }
        //删除 删除实体
        public Task<int> Del(Enterprise id)
        {
            return base.Del(id);
        }
        //添加
        public async Task<int> GetAddAsync(Enterprise t)
        {
            return await base.GetAddAsync(t);
        }
        //显示 不带异步
        public List<Enterprise> GetAll()
        {
            return base.GetAll();
        }

        //显示 带异步
        public async Task<List<Enterprise>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        //反填
        public async Task<Enterprise> GetByidAsync(int id)
        {
            return await base.GetByidAsync(id);
        }
        //修改
        public async Task<int> GetUpd(Enterprise t)
        {
            return await base.GetUpd(t);
        }
    }
}
